#ifndef FILEIO_PUB_H
#define FILEIO_PUB_H

#include "student_pub.h"
#include "course_pub.h"

// 文件操作接口
int load_initial_data(StudentList* student_list, CourseList* course_list);
int save_all_data(StudentList* student_list, CourseList* course_list);
int save_students_to_file(StudentList* list, const char* filename);
int load_students_from_file(StudentList* list, const char* filename);
int save_courses_to_file(CourseList* list, const char* filename);
int load_courses_from_file(CourseList* list, const char* filename);
void log_operation(const char* operation, const char* details);

#endif
